﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace Axis.Web.Views.TagCloud.Service
{
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    [System.Web.Script.Services.ScriptService]
    public class ClounbTagService : System.Web.Services.WebService
    {

        [WebMethod(EnableSession = true)]
        public string GetList()
        {
            CCloundTagUI UI = new CCloundTagUI();
            return UI.GetListTab();
        }
        [WebMethod(EnableSession = true)]
        public string GetListByPage(string Context)
        {
            CCloundTagUI UI = new CCloundTagUI();
            return UI.GetListTab(Context);
        }
          [WebMethod(EnableSession = true)]
        public string GetListByNewsID(string NewsID)
        {
            CCloundTagUI UI = new CCloundTagUI();
            return UI.GetListNews(NewsID);
        }
          [WebMethod(EnableSession = true)]
          public string GetListByProjectID(string NewsID)
          {
              CCloundTagUI UI = new CCloundTagUI();
              return UI.GetListProject(NewsID);
          }

          [WebMethod(EnableSession = true)]
          public string GetListNews(string tagID, string page, string rows)
          {
              CCloundTagUI UI = new CCloundTagUI();
              return UI.GetListNews(tagID, page, rows);
          }
    }
}
